package com.jmp.base;

import com.jmp.base.dto.*;
import one.stand.model.ResultModel;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface AccountApi {

    @PostMapping("account/save")
    ResultModel save(@RequestBody AccountSaveRequest request);

    @PostMapping("account/auth")
    ResultModel<AccountResponse> auth(@RequestBody AccountAuthRequest request);

    @PostMapping("account/get/companyId/default")
    ResultModel<AccountResponse> getCompanyIdDefaultIfNull(@RequestBody AccountCompanyIdRequest request);

    @PostMapping("account/get/companyId")
    ResultModel<AccountResponse> getCompanyId(@RequestBody AccountCompanyIdRequest request);

    @PostMapping("account/get/companyKey/default")
    ResultModel<AccountResponse> getCompanyKeyDefaultIfNull(@RequestBody AccountCompanyKeyRequest request);

    @PostMapping("account/get/appid")
    ResultModel<AccountResponse> getByAppId(@RequestBody AccountAppIdRequest request);

    @PostMapping("account/get/appid2")
    ResultModel<AccountResponse> getByAppId2(@RequestBody AccountAppIdRequest request);
}
